package cn.bob.service.impl;

import cn.bob.domain.UserMovie;
import cn.bob.mapper.UserMovieMapper;
import cn.bob.service.IUserMovieService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author bob
 * @since 2022-11-23
 */
@Service
public class UserMovieServiceImpl extends ServiceImpl<UserMovieMapper, UserMovie> implements IUserMovieService {
    @Autowired
    private UserMovieMapper userMovieMapper;

    @Override
    public List<UserMovie> selectByUserId(Long userId) {
        return userMovieMapper.selectByUserId(userId);
    }

    @Override
    public UserMovie selectByUserAndMovie(Long id, Long userId) {
        return userMovieMapper.selectByUserAndMovie(id,userId);
    }


}
